<?php
	/* views/pagees/index.ctp */
?>
<h1>Các trang thông tin</h1>
<table>
	<tr> 
		<th style="width:20px;"> <input type="checkbox" /> </th>
		<th><?php echo $paginator->sort('ID', 'id'); ?></th> 
		<th><?php echo $paginator->sort('Page ', 'title'); ?></th>
		<th>Action</th> 
	</tr> 
	   <?php foreach($pagees as $pagee): ?> 
	<tr> 
		<td><input type="checkbox" value="<?php echo $pagee['Pagee']['id']; ?>" /></td>
		<td><?php echo $pagee['Pagee']['id']; ?> </td> 
		<td><?php echo $pagee['Pagee']['title']; ?> </td>
		<td style="width: 230px;">
			<a href="<?php echo $html->url('/pagees/add') ?>" class="button">
				<span class="ss_sprite ss_add">Add</span>
			</a>
			<a href="<?php echo $html->url('/pagees/edit/' . $pagee['Pagee']['id']) ?>" class="button">
				<span class="ss_sprite ss_accept">Edit</span>
			</a>
			<a href="<?php echo $html->url('/pagees/delete/' . $pagee['Pagee']['id']) ?>" class="button">
				<span class="ss_sprite ss_cancel">Delete</span>
			</a>
		</td> 
	</tr> 
	<?php endforeach; ?> 
</table>

<div>
<?php
	echo $paginator->prev('« Previous ', null, null, array('class' => 'disabled p'));
	echo $paginator->numbers();
	echo $paginator->next(' Next »', null, null, array('class' => 'disabled n')); 
?>
</div>
<br  style="clear:both"/>
<div class="span-23 last" style="text-align:right">
	<a href="#" class="button">
		<img src="<?php echo$html->url('/css/blueprint/plugins/buttons/icons/cross.png')?>" />Delete
	</a>
</div>
<?php 
echo $paginator->counter(array(
	'format' => 'Page %page% of %pages%, showing %current% records out of
			 %count% total, starting on record %start%, ending on %end%'
)); 
?>